<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>FEUP-Defender: Timer-Counter</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Localizar');
--></script>
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='../../open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='../../closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='../../closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="../../modules.html"><span>Módulos</span></a></li>
      <li><a href="../../annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="../../files.html"><span>Ficheiros</span></a></li>
      <li><a href="../../dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="../../search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Localizar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Timer-Counter</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Funções</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga50796930b8e562f692a38c60a378c5fd">clock_sleep</a> (int clocks)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga65b0826657eae773861306a352355c7e">get_divider</a> (float freq)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga41884d7120e9408d1c5719e2858f6564">mili_sleep</a> (int mili)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga0e9d3dc8f167970fe922c56d47d84850">sec_sleep</a> (int secs)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga6617a30ded5d745873f7de678030d10c">timer_init</a> (int timer, int mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gae17f36dbe5d10ebced7a88cc463a7ea9">timer_load</a> (int timer, int value)</td></tr>
<tr><td colspan="2"><h2>Some usefull (and nice) definitions</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp03a7b5ea01a04131b249a391645b3d29"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gaea17a229fcf743540b24e8acde7b3a8f">LCOM_MODE</a>&nbsp;&nbsp;&nbsp;0x36</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Control byte: LSB followed by MSB, mode 3, binary count.  <a href="#gaea17a229fcf743540b24e8acde7b3a8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gacb14513edfabace28d9ee211c29b3a54">LSB</a>(i)&nbsp;&nbsp;&nbsp;((i) &amp; 0xFF)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The Least Significative Byte of a Word.  <a href="#gacb14513edfabace28d9ee211c29b3a54"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga100824284a4b3301df9cdd3f49914fde">MSB</a>(i)&nbsp;&nbsp;&nbsp;((i) &gt;&gt; 8)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The Most Significative Byte of a Word*/.  <a href="#ga100824284a4b3301df9cdd3f49914fde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gae5af43ac16a34537dd1799ef08229aef">TIMER_CLK</a>&nbsp;&nbsp;&nbsp;1193181</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The timers input frequency.  <a href="#gae5af43ac16a34537dd1799ef08229aef"></a><br/></td></tr>
<tr><td colspan="2"><h2>Speaker and Timer2 control and bit meanings</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp522b10e3c0ddf497a8490aaa34435a31"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga51b3a5e3d4811ca063fe25e35560ab40">SPEAKER_CTRL</a>&nbsp;&nbsp;&nbsp;0x61</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The address of a generic PC register, whose bits 0 and 1 control the timer2 clock and output to the speaker.  <a href="#ga51b3a5e3d4811ca063fe25e35560ab40"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gaddc08f0751fd696a4a21d7e20ce96765">SPEAKER_ENABLE</a>&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 1)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable Timer 2 output to speaker.  <a href="#gaddc08f0751fd696a4a21d7e20ce96765"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga2b2c87cf384febed61fa7cc3a039c692">TIMER2_ENABLE</a>&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable Timer 2 clock.  <a href="#ga2b2c87cf384febed61fa7cc3a039c692"></a><br/></td></tr>
<tr><td colspan="2"><h2>Timer Address</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp6e55b863430fd8bd7e27be8ff21ed918"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gacc9ff9df4a9674a1ce9ba08fc4a4679e">TIMER_0</a>&nbsp;&nbsp;&nbsp;0x40</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adress of Timer0 divider.  <a href="#gacc9ff9df4a9674a1ce9ba08fc4a4679e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#gac62c99c2a9289891c1b83052242cca49">TIMER_1</a>&nbsp;&nbsp;&nbsp;0x41</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adress of Timer1 divider.  <a href="#gac62c99c2a9289891c1b83052242cca49"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga1f34f18ad0ab8cace46b615773b48735">TIMER_2</a>&nbsp;&nbsp;&nbsp;0x42</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adress of Timer2 divider.  <a href="#ga1f34f18ad0ab8cace46b615773b48735"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d73/group__TimerCounter.html#ga282832448fb0281ef53d243c1cd48491">TIMER_CTRL</a>&nbsp;&nbsp;&nbsp;0x43</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The address of the timer control register.  <a href="#ga282832448fb0281ef53d243c1cd48491"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descrição detalhada</h2>
<p>Timer-Counter definitions </p>
<hr/><h2>Documentação das macros</h2>
<a class="anchor" id="gaea17a229fcf743540b24e8acde7b3a8f"></a><!-- doxytag: member="timer.h::LCOM_MODE" ref="gaea17a229fcf743540b24e8acde7b3a8f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LCOM_MODE&nbsp;&nbsp;&nbsp;0x36</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Control byte: LSB followed by MSB, mode 3, binary count. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00036">36</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="gacb14513edfabace28d9ee211c29b3a54"></a><!-- doxytag: member="timer.h::LSB" ref="gacb14513edfabace28d9ee211c29b3a54" args="(i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LSB</td>
          <td>(</td>
          <td class="paramtype">i&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;((i) &amp; 0xFF)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The Least Significative Byte of a Word. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00037">37</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga100824284a4b3301df9cdd3f49914fde"></a><!-- doxytag: member="timer.h::MSB" ref="ga100824284a4b3301df9cdd3f49914fde" args="(i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSB</td>
          <td>(</td>
          <td class="paramtype">i&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;((i) &gt;&gt; 8)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The Most Significative Byte of a Word*/. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00038">38</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga51b3a5e3d4811ca063fe25e35560ab40"></a><!-- doxytag: member="timer.h::SPEAKER_CTRL" ref="ga51b3a5e3d4811ca063fe25e35560ab40" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SPEAKER_CTRL&nbsp;&nbsp;&nbsp;0x61</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The address of a generic PC register, whose bits 0 and 1 control the timer2 clock and output to the speaker. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00028">28</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="gaddc08f0751fd696a4a21d7e20ce96765"></a><!-- doxytag: member="timer.h::SPEAKER_ENABLE" ref="gaddc08f0751fd696a4a21d7e20ce96765" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SPEAKER_ENABLE&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 1)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enable Timer 2 output to speaker. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00030">30</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga2b2c87cf384febed61fa7cc3a039c692"></a><!-- doxytag: member="timer.h::TIMER2_ENABLE" ref="ga2b2c87cf384febed61fa7cc3a039c692" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER2_ENABLE&nbsp;&nbsp;&nbsp;(1 &lt;&lt; 0)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enable Timer 2 clock. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00029">29</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="gacc9ff9df4a9674a1ce9ba08fc4a4679e"></a><!-- doxytag: member="timer.h::TIMER_0" ref="gacc9ff9df4a9674a1ce9ba08fc4a4679e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER_0&nbsp;&nbsp;&nbsp;0x40</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adress of Timer0 divider. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00020">20</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="gac62c99c2a9289891c1b83052242cca49"></a><!-- doxytag: member="timer.h::TIMER_1" ref="gac62c99c2a9289891c1b83052242cca49" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER_1&nbsp;&nbsp;&nbsp;0x41</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adress of Timer1 divider. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00021">21</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga1f34f18ad0ab8cace46b615773b48735"></a><!-- doxytag: member="timer.h::TIMER_2" ref="ga1f34f18ad0ab8cace46b615773b48735" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER_2&nbsp;&nbsp;&nbsp;0x42</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adress of Timer2 divider. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00022">22</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="gae5af43ac16a34537dd1799ef08229aef"></a><!-- doxytag: member="timer.h::TIMER_CLK" ref="gae5af43ac16a34537dd1799ef08229aef" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER_CLK&nbsp;&nbsp;&nbsp;1193181</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The timers input frequency. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00035">35</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga282832448fb0281ef53d243c1cd48491"></a><!-- doxytag: member="timer.h::TIMER_CTRL" ref="ga282832448fb0281ef53d243c1cd48491" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMER_CTRL&nbsp;&nbsp;&nbsp;0x43</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The address of the timer control register. </p>

<p>Definido na linha <a class="el" href="../../d5/dd0/timer_8h_source.html#l00023">23</a> do ficheiro <a class="el" href="../../d5/dd0/timer_8h_source.html">timer.h</a>.</p>

</div>
</div>
<hr/><h2>Documentação das funções</h2>
<a class="anchor" id="ga50796930b8e562f692a38c60a378c5fd"></a><!-- doxytag: member="timer.h::clock_sleep" ref="ga50796930b8e562f692a38c60a378c5fd" args="(int clocks)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void clock_sleep </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>clocks</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00034">34</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga65b0826657eae773861306a352355c7e"></a><!-- doxytag: member="timer.h::get_divider" ref="ga65b0826657eae773861306a352355c7e" args="(float freq)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int get_divider </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>freq</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00027">27</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_ga65b0826657eae773861306a352355c7e_icgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_ga65b0826657eae773861306a352355c7e_icgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga41884d7120e9408d1c5719e2858f6564"></a><!-- doxytag: member="timer.h::mili_sleep" ref="ga41884d7120e9408d1c5719e2858f6564" args="(int mili)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mili_sleep </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>mili</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Wait mili miliseconds, indirectly counting T0 interrupts </p>

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00042">42</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_ga41884d7120e9408d1c5719e2858f6564_icgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_ga41884d7120e9408d1c5719e2858f6564_icgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga0e9d3dc8f167970fe922c56d47d84850"></a><!-- doxytag: member="timer.h::sec_sleep" ref="ga0e9d3dc8f167970fe922c56d47d84850" args="(int secs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sec_sleep </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>secs</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>wait secs seconds, indirectly counting T0 interrupts </p>

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00052">52</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

<p><div class="dynheader">
Grafo de chamadas desta função:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_ga0e9d3dc8f167970fe922c56d47d84850_cgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_ga0e9d3dc8f167970fe922c56d47d84850_cgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga6617a30ded5d745873f7de678030d10c"></a><!-- doxytag: member="timer.h::timer_init" ref="ga6617a30ded5d745873f7de678030d10c" args="(int timer, int mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void timer_init </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>timer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>mode</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Program timer (0,1,2) with mode </p>

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00005">5</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

<p><div class="dynheader">
Grafo de chamadas desta função:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_ga6617a30ded5d745873f7de678030d10c_cgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_ga6617a30ded5d745873f7de678030d10c_cgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gae17f36dbe5d10ebced7a88cc463a7ea9"></a><!-- doxytag: member="timer.h::timer_load" ref="gae17f36dbe5d10ebced7a88cc463a7ea9" args="(int timer, int value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void timer_load </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>timer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Load timer (0,1,2) with value </p>

<p>Definido na linha <a class="el" href="../../df/d41/timer_8c_source.html#l00019">19</a> do ficheiro <a class="el" href="../../df/d41/timer_8c_source.html">timer.c</a>.</p>

<p><div class="dynheader">
Grafo de chamadas desta função:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_gae17f36dbe5d10ebced7a88cc463a7ea9_cgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_gae17f36dbe5d10ebced7a88cc463a7ea9_cgraph_map" alt=""></div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="../../d6/d73/group__TimerCounter_gae17f36dbe5d10ebced7a88cc463a7ea9_icgraph.png" border="0" usemap="#d6/d73/group__TimerCounter_gae17f36dbe5d10ebced7a88cc463a7ea9_icgraph_map" alt=""></div>
</div>
</p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Estruturas de dados</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Ficheiros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Definições de tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerações</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Valores da enumeração</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Tue Jun 1 21:46:47 2010 para FEUP-Defender por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
